package com.ruoyi.test.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/hello")
public class HelloController {
    @GetMapping("/hi")
    public Map hi() {
        HashMap<String, Object> map = new HashMap<>();
        map.put("name", "lhr");
        map.put("age", 18);
        return map;
    }
}
